<!--
 * @Author: xinyang3
 * @Date: 2022-03-11 17:16
 * @Descripttion: awesome description
 * @LastEditors: xinyang3
 * @LastEditTime: 2022-04-02 17:11
-->
<template>
  <div v-bind:class='["loading-container", clazz]'>
    <span class='text'>加载中</span>
  </div>
</template>
<script>
import { defineComponent, ref } from "vue";
export default defineComponent({
  name: 'loading',
  props: {
    idx: Number,
    clazz: String
  },
  setup (props) {
    const { clazz } = props;

    // let clazz = ref(`data-index-${id}`);

    return {
      clazz
    }
  }
})
</script>
<style lang="scss" scoped>
.loading-container {
  text-align: center;
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 100;
  top: 0;
  bottom: 0;
  color: #90caf9;
}
.loading-container .text {
  display: inline-block;
  margin-top: 350px;
}
</style>